<div class="main detail-info jiu-zheng">
  <div class="main-header">
    <div class="pa-icon-div pull-left fs-14">
      <i class="iconfont icon-shouye fs-14 icon-vertical-top"></i>
      <span class="fs-vertical-middle">工作台>人员管理>人员信息>
      <span class="fs-theme-color">基本信息</span>
      </span>
    </div>
    <go-back></go-back>
  </div>
  <div class="main-content date-none-border">
    <form class="base-info" name="worker" style="padding: 0;">
      <div class="container-header fs-16">
        <span>人员信息详情表</span>
      </div>
      <div class="info-item fs0 info-item-other">
        <div class="base-info-fl" avatar-uploader
          data-url="/api/v1/common/uploadFile?folderName=staff"
          ng-model="vm.view.avatarFile">
          <img src="../../assets/images/addBt.jpg" alt="">
        </div>
        <div class="base-info-fr">
          <div class="info-item-header fs-16">
            <div class="pa-form-control">
              <label class="pa-form-control-label"><b>*</b>姓名：</label>
              <span class="pa-form-control-span pa-form-header-span">
                {{vm.workerDetailInfo.orgPersonBean.fullName}}
              </span>
            </div>
            <div class="pa-form-control fr">
              <label><b>*</b>人员种类：</label>
              <select class="form-control-input edit-fs-16"
                ng-options="worker.value as worker.name for worker in workerTypeParams"
                ng-model="vm.workerDetailInfo.orgPersonBean.type">
              </select>
            </div>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>岗&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位</label>
            <span class="pa-form-control-span">{{vm.workerDetailInfo.orgPersonBean.postName}}</span>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门</label>
            <span class="pa-form-control-span">{{vm.workerDetailInfo.orgPersonBean.departmentName}}</span>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>单&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位</label>
            <span class="pa-form-control-span">{{vm.workerDetailInfo.orgPersonBean.orgName}}</span>
          </div>
          <div class="pa-form-control w-50 fs-16">
            <label class="fs-theme-color pa-info-label"><b>*</b>进场时间</label>
            <span class="pa-form-control-span">{{vm.workerDetailInfo.orgPersonBean.inTime | date:"yyyy-MM-dd"}}</span>
          </div>
        </div>
      </div>
      <div class="info-item info-item-general clearfix">
        <div class="info-item-header fs-14">
          <label class="info-item-header-label">基本信息</label>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>身份证号：</label>
          <span class="pa-form-control-span">{{vm.workerDetailInfo.orgPersonBean.idNo}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>联系方式：</label>
          <input type="text" class="form-control-input"
            ng-model="vm.workerDetailInfo.orgPersonBean.cellphone">
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label">出场时间：</label>
          <span class="pa-form-control-span">{{vm.workerDetailInfo.orgPersonBean.outTime | date:"yyyy-MM-dd"}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>性别：</label>
          <span class="pa-form-control-span">
            {{vm.workerDetailInfo.personCollectBean.idCardBean.sex == 1 ? '男' :
              vm.workerDetailInfo.personCollectBean.idCardBean.sex == 2 ? '女' : ''}}
          </span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>出生日期：</label>
          <span class="pa-form-control-span">{{vm.workerDetailInfo.personCollectBean.idCardBean.birthdayStr}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label">年龄：</label>
          <span class="pa-form-control-span">{{vm.workerDetailInfo.personCollectBean.idCardBean.age}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label">民族：</label>
          <span class="pa-form-control-span">{{vm.workerDetailInfo.personCollectBean.idCardBean.nation}}</span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label"><b>*</b>籍贯：</label>
          <span class="cascader-picker" style="width: 185px;">
            <input type="text" style="width: 185px;" readonly
              class="form-control-input"
              ng-model="vm.workerDetailInfo.orgPersonBean.nativePlace"
              ng-click="vm.isCasaderExpanded = !vm.isCasaderExpanded">
            <i class="icon iconfont icon-xiala"
              ng-class="{'arrow-expand': vm.isCasaderExpanded}"></i>
            <div class="casader-menus" ng-show="vm.isCasaderExpanded">
              <ul class="casader-menu">
                <li class="casader-menu-item"
                  ng-repeat="item in vm.casaderData"
                  ng-click="vm.activeItem1 = item;">{{item.name}}</li>
              </ul>
              <ul class="casader-menu">
                <li class="casader-menu-item"
                  ng-repeat="item in vm.activeItem1.sub"
                  ng-click="vm.casaderPick(vm.activeItem1, item)">{{item.name}}</li>
              </ul>
            </div>
          </span>
        </div>
        <div class="pa-form-control">
          <label class="fs-theme-color pa-base-info-label">学历：</label>
          <select class="form-control-select"
            ng-options="degree.value as degree.name for degree in degreeParams"
            ng-model="vm.workerDetailInfo.orgPersonBean.degree">
            <option value=""></option>
          </select>
        </div>
        <div class="pa-form-control" style="width: 100%;">
          <label class="fs-theme-color pa-base-info-label">家庭地址：</label>
          <span class="pa-form-control-span" style="width: 84%;">{{vm.workerDetailInfo.personCollectBean.idCardBean.address}}</span>
        </div>
        <div class="pa-form-control" style="width: 100%;">
          <label class="fs-theme-color pa-base-info-label">备注：</label>
          <input type="text" class="form-control-input form-control-note"
            ng-model="vm.workerDetailInfo.orgPersonBean.remark" style="width: 84%;">
        </div>
        <div class="pa-form-control pa-base-info-block">
          <label class="fs-theme-color pa-base-info-label">指纹信息：</label>
          <span class="pa-form-control-span">已采集</span>
        </div>
      </div>
      <div class="info-item info-table">
        <div class="info-item-header fs-14">
          <label class="info-item-header-label">证书信息（三类人员、特种人员必填）</label>
          <div class="pa-operate-add fr fs-14 fs-theme-color" ng-click="vm.$addCertify()">
            <a class="pa-btn-a">
              <i class="iconfont icon-middle icon-add"></i>
              <span>新增</span>
            </a>
          </div>
        </div>
        <table class="add-table fs-14 edit-info-table">
          <thead>
            <tr>
              <th>证书类别</th>
              <th>证书编号</th>
              <th>发证单位</th>
              <th>发证时间</th>
              <th>有效日期</th>
              <th class="operate-w20"></th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="item in vm.workerDetailInfo.certificateList">
              <td>
                <!-- <select class="form-control-select"
                  ng-show="vm.workerDetailInfo.orgPersonBean.type == 2"
                  ng-model="item.type">
                  <option value="4">特种作业证</option>
                </select>
                <select class="form-control-select"
                  ng-show="vm.workerDetailInfo.orgPersonBean.type == 3"
                  ng-model="item.type">
                  <option value="1">A证</option>
                  <option value="2">B证</option>
                  <option value="3">C证</option>
                </select> -->
                <input type="text" class="form-control-input"
                  ng-model="item.type">
              </td>
              <td>
                <input type="text" class="form-control-input"
                  ng-model="item.code">
              </td>
              <td>
                <input type="text" class="form-control-input"
                  ng-model="item.issueUnit">
              </td>
              <td>
                <input type="text" class="form-control-input date-picker"
                  data-ng-datepicker ng-model="item.issueDate">
              </td>
              <td>
                <input type="text" class="form-control-input date-picker"
                  data-ng-datepicker
                  ng-model="item.validPeriod">
              </td>
              <td ng-click="vm.$cancelCertify($index)"><i class="fa fa-times-circle"></i></td>
            </tr>
          </tbody>
        </table>
      </div>
      <div class="info-item">
        <div class="info-item-header fs-14">
          <label class="info-item-header-label">附件信息（简历/资料等附件）</label>
          <div class="pa-operate-add fr fs-14 fs-theme-color">
            <a class="pa-btn-a"
              attachment-uploader
              data-url="/api/v1/common/uploadFile?folderName=staff"
              data-target=".file-list"
              ng-model="vm.view.attachmentFiles">
              <i class="iconfont icon-add icon-middle fs-14"></i>
              <span>新增</span>
            </a>
          </div>
        </div>
        <div class="file-list"></div>
      </div>
      <div class="pa-btn-area">
        <button class="pa-btn pa-btn-longer" type="button" ng-click="vm.$saveData(worker)">保存</button>
        <button class="pa-btn pa-btn-longer reset-btn" type="button" ui-sref="workerInfo">取消</button>
      </div>
    </form>
  </div>
</div>